package org.hyh.javaConfig;

import org.hyh.autowired.Teacher;
import org.springframework.context.annotation.*;

/**
 * @auther :hyh
 * @desc :
 * @date :2019/12/5
 */
@ComponentScan(basePackages = "org.hyh.javaConfig")
@PropertySource("classpath:db.properties")
public class JavaConfig {

	@DependsOn("AUser")
	@Bean    //方法名字来实现对应的数据。
	public ATeacher  teacherAAA() {
		ATeacher aTeacher = new ATeacher();
		aTeacher.setNickName("阳历");
		return aTeacher;
	}

}
